Install KVM
2015/11/22 |
It's Virtualization with KVM ( Kernel-based Virtual Machine ) + QEMU.
This requires that the CPU on your computer which has a function Intel VT or AMD-V. |
|
[1] | Install required packages. |
dlp:~ #
zypper -n install qemu-kvm libvirt virt-install bridge-utils # verify modules are loaded dlp:~ # kvm_intel 147785 0 kvm 464964 1 kvm_inteldlp:~ # systemctl start libvirtd dlp:~ # systemctl enable libvirtd |
[2] | Configure Bridge networking for KVM virtual machine. |
dlp:~ # mv /etc/sysconfig/network/ifcfg-eth0 /etc/sysconfig/network/ifcfg-br0
dlp:~ #
vi /etc/sysconfig/network/ifcfg-br0 # add follows to the end BRIDGE='yes' BRIDGE_FORWARDDELAY='0' BRIDGE_PORTS='eth0' BRIDGE_STP='off'
dlp:~ #
vi /etc/sysconfig/network/routes # add gateway for br0 to the end
default 10.0.0.1 - br0
dlp:~ #
dlp:~ # systemctl restart wickedd wicked
ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000 link/ether 00:0c:29:93:c2:e0 brd ff:ff:ff:ff:ff:ff 3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default link/ether 00:0c:29:93:c2:e0 brd ff:ff:ff:ff:ff:ff inet 10.0.0.30/24 brd 10.0.0.255 scope global br0 valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fe93:c2e0/64 scope link valid_lft forever preferred_lft forever |